﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _7代理模式0
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Button1_Click(object sender, EventArgs e)
        {
            SchoolGirl jiaojiao=new SchoolGirl();
            jiaojiao.Name = "ddd";

            Proxy daili=new Proxy(jiaojiao);

            daili.GiveDolls();
            daili.GiveChocolate();
            daili.GiveFlowers();
        }
    }
}
